-- GENERATED SPELL FOR [Timberweb Recluse] --


function spell0_8762(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8762', 5261, 1)
end

function Sorts_8762(pUnit, Event)
local choix_sorts_8762 = math.random(0, 0)
if choix_sorts_8762 == 0 then
pUnit:RegisterEvent('spell0_8762', 1, 1)
end
end

function mob8762_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8762', math.random(1500, 3000), 1)
end

function mob8762_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8762_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8762_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8762, 1, 'mob8762_Action')
RegisterUnitEvent(8762, 2, 'mob8762_Leave')
RegisterUnitEvent(8762, 3, 'mob8762_Kill')
RegisterUnitEvent(8762, 4, 'mob8762_Die')
